package com.example.xpvideo.service;

import com.example.xpvideo.entity.PageResult;
import com.example.xpvideo.entity.ResponseResult;
import com.example.xpvideo.entity.req.AuditReq;
import com.example.xpvideo.entity.req.PHPCommodityReq;
import com.example.xpvideo.entity.req.RecommendReq;
import com.example.xpvideo.entity.req.UpdateReq;
import com.example.xpvideo.entity.res.LocalGoodsDetailRes;
import com.example.xpvideo.entity.res.LocalGoodsRes;
import com.example.xpvideo.entity.res.PHPCommodityRes;
import com.example.xpvideo.exception.ErrorException;

import java.util.List;

public interface LocalGoodsService {
    ResponseResult<PageResult<List<LocalGoodsRes>>> list(PHPCommodityReq phpCommodityReq) throws ErrorException;
    ResponseResult<LocalGoodsDetailRes> detail(Integer id) throws ErrorException;
    ResponseResult<Object> audit(AuditReq auditReq) throws ErrorException;
    ResponseResult<Object> shelf(UpdateReq updateReq) throws ErrorException;
    ResponseResult<Object>delete(UpdateReq updateReq) throws ErrorException;
    ResponseResult<Object> recommend(RecommendReq recommendReq) throws ErrorException;
}
